powerpc: Fix -mcpu= options for SPE-only compiler
authorBen Hutchings <ben@decadent.org.uk>
Wed, 26 Dec 2018 00:00:40 +0000 (00:00 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 15 Mar 2019 02:16:04 +0000 (02:16 +0000)
commitcbaba4209a6c946428510ba29e6dd749ecf0c0e1
tree3031200a80f5ef05be95e479e97fb59126a13189
parenta632141d33fc44eb89e2d442d2df41b6a3ff0d0c
powerpc: Fix -mcpu= options for SPE-only compiler

GCC for Debian's "powerpcspe" architecture only supports 32-bit
SPE targets, and using -mcpu=powerpc or -mcpu=powerpc64 is a fatal
error.

* Change the test for a biarch compiler to pass both the -m32 and -m64
  options, so that it doesn't catch 32-bit-only compilers
* Add an ifdef CONFIG_PPC64 around the 64-bit CPU option definitions

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/powerpc
Gbp-Pq: Name powerpc-fix-mcpu-options-for-spe-only-compiler.patch
arch/powerpc/Makefile